package com.sunxu.designpatterns.patterns.creational.singleton;

/**
 * @author 孙许
 * @date 2018-08-22
 * @description
 */
public class Task implements Runnable {
    @Override
    public void run() {
//        LazySingleton lazySingleton = LazySingleton.getInstance();
        LazyDoubleCheckSingleton lazyDoubleCheckSingleton = LazyDoubleCheckSingleton.getInstance();
        System.out.println(Thread.currentThread().getName() + "  " + lazyDoubleCheckSingleton);
    }
}
